global theFirstShipChannel, theBackgroundVelocity, theFirstOtherShipChannel, theLastOtherShipChannel, theOtherShipVelocity
repeat with h = theFirstOtherShipChannel to theLastOtherShipChannel
if sprite h intersects theFirstShipChannel then
if theBackgroundVelocity = 0 then
PlayBounceSound()
set theBackgroundVelocity to 2 * theOtherShipVelocity
set temp to theOtherShipVelocity
set theOtherShipVelocity to 0
DoEveryFrame()
DoEveryFrame()
set theOtherShipVelocity to temp
next repeat
end if
if ((theBackgroundVelocity < 0) and (the left of sprite theFirstShipChannel < the left of sprite h)) or ((theBackgroundVelocity > 0) and (the right of sprite theFirstShipChannel > the right of sprite h)) then
PlayBounceSound()
set theBackgroundVelocity to -theBackgroundVelocity